/<template>
  <div class="sleep">
    <div class="top">
      <div class="top_one">
        <h1>睡前必听</h1>
        <span>查看更多></span>
      </div>
      <div class="sleep_top">
        <p>
          给予心灵上的一种安静，治愈疲惫了一整天的灵魂。为大家分享一些适合晚上听的书，来听一下吧！
        </p>
      </div>
    </div>
    <div class="buttom">
      <div class="buttom_content" v-for="(item, index) in arr" :key="index">
        <img :src="item.img" alt="" />
        <span>{{ item.name }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [
        {
          img: require("../../assets/img/si.png"),
          name: "海是倒过来",
        },
        {
          img: require("../../assets/img/guancnag.png"),
          name: "波斯少年",
        },
        {
          img: require("../../assets/img/si.png"),
          name: "旋转的空间",
        },
        {
          img: require("../../assets/img/guancnag.png"),
          name: "海是倒过来",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.sleep {
  width: 90%;
  height: 300px;
  background: #ffffff;
  margin: 20px 20px 0 20px;
  border-radius: 18px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.04);
  position: relative;
}
.top {
  width: 100%;
  height: 200px;
  //   background: goldenrod;
  border-radius: 18px;

  background: linear-gradient(180deg, #527fb3 0%, #ffffff 100%);
}
.top_one {
  width: 100%;
  height: 80px;
  //   background: goldenrod;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top h1 {
  font-size: 24px;
  padding: 0 15px;
  color: #fff;
}
.top span {
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #fff;
  padding: 0 10px;
}
.sleep_top {
  width: 100%;
  height: 50px;
  //   background-color: pink;
  font-size: 14px;
}
.sleep_top p {
  width: 98%;
  display: flex;
  flex-wrap: wrap;
  //   margin: 0 10px;
  line-height: 20px;
  margin-left: 2%;
}
.sleep_content {
  width: 100%;
  height: 100px;
  background: blue;
}
.buttom {
  height: 150px;
  width: 100%;
  margin-top: -15%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: absolute;

  //   flex-grow: 1;
  //   flex-shrink: 1;
}
.buttom_content img {
  width: 75px;
  height: 75px;
  border-radius: 14px;
}
.buttom_content span {
  height: 50px;
  width: 80px;
  display: flex;
  flex-wrap: wrap;
}
</style>